//
//  MapPoint.m
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 5/31/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "MapPoint.h"

@implementation MapPoint
@synthesize coordinate=_coordinate;
@synthesize title=_title;
@synthesize subTitle=_subTitle;
@synthesize tag=_tag;

-(void) dealloc
{
    [_title release];
    [_subTitle release];
    [super dealloc];
}

-(id) initWithCoordinate:(CLLocationCoordinate2D) coordinate title:(NSString *) title subTitle:(NSString *) subTitle
{
    self=[super init];
    _coordinate=coordinate;
    self.subTitle=subTitle;
    self.title=title;
    return self;
}

- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate
{
//    self.coordinate=newCoordinate;
    _coordinate=newCoordinate;
}
//- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate NS_AVAILABLE(NA, 4_0)
//{
//    self.coordinate=newCoordinate;
//}
@end
